<template>
	<div class="allPoDetails">
		<AllPoDetailsList curURL="ai/sales/pages/getAllPoCustomerModel" :orderBy="orderBy" :sequence="sequence" jumpToObjectDetails="customerDetails" status="0"></AllPoDetailsList>
	</div>
</template>

<script>
	import bus from '@/event/eventBus'
	import PoCustomerList from '../../../../components/mobile/scroller/scrollerPoCustomerList'
	//import MemberDetailsList from '../../../../components/mobile/scroller/scrollerMember'
	import AllPoDetailsList from '../../../../components/mobile/scroller/scrollerAllPoCustomerList'
	import {Group, Cell, XButton, Grid, GridItem} from 'vux'
	export default {
		name: "renew-contract-discovery",
		components: {
			Group,
			Cell,
			XButton,
			Grid,
			GridItem,
			AllPoDetailsList,
			PoCustomerList
		},
		data() {
			return {
				title: '准客户总览',
				items: [],
				orderBy: 'time',
				sequence: 'desc'
			}
		},
		created: function () {
			bus.$emit("userDefinedEvent", 2)
			bus.$emit("barController", 1)
			bus.$emit("setTopSimpleTitle", '准客户总览')

			if(sessionStorage.orderBy != null){
				this.orderBy = sessionStorage.orderBy
			}

			if(sessionStorage.sequence != null){
				this.sequence = sessionStorage.sequence
			}
		},
		methods: {
			orderByFunc: function (value) {
				this.orderBy = value
				if(this.sequence == 'asc'){
					this.sequence = 'desc'
				}else{
					this.sequence = 'asc'
				}
				sessionStorage.orderBy = this.orderBy
				sessionStorage.sequence = this.sequence
			}
		}
	}
</script>

<style>
	.grid-center {
		display: block;
		text-align: center;
		color: #666;
	}

	.grid-center-name{
		display: block;
		text-align: center;
		color: #43abe3;
	}

	.allPoDetails {
		margin-top: 46px;
	}

	.allPoDetails > .weui-grids > .weui-grid {
		padding: 10px 0px;
		text-decoration: none;
		font-size: 12px;
	}

	.memberStatusTitle {
		background-color: lightgoldenrodyellow;
		z-index: 999;
	}

	.memberStatusCell {
		background-color: white;
	}

	.memberStatusGroup > .weui-cells {
		z-index: 999;
	}
</style>